public class HelloContacts
{
    public static void showContacts()
    {
        for(Contact c : [select id, name from Contact limit 100])
            System.debug(LoggingLevel.INFO, 'Hello '+c.name);
    }
}